package cc.rengu.igas.opms.common.enums;

/**
 * 业务响应码枚举类
 * Created by 王成 on 2017/6/27.
 */
public enum RespCodeEnum {
    ESB_SUCCESS("S000A000", "交易成功"),
    TRANS_SUCCESS("00000000", "交易成功"),
    MSG_VALID_CHECK_ERROR("ER11PM01", "报文检查失败"),
    MCHNT_APP_INFO_NOT_FOUND("ER12PM01", "获取商户应用信息失败"),
    MCHNT_APP_STATUS_ABNORMAL("ER12PM02", "商户应用状态异常"),
    MCHNT_SECRET_KEY_NOT_MATCH("ER12PM03", "商户应用密钥与系统不匹配"),
    MCHNT_INFO_NOT_FOUND("ER12PM04", "获取商户信息失败"),
    MCHNT_STATUS_ABNORMAL("ER12PM05", "商户状态异常"),
    GET_CARD_BIN_INFO_ERROR("ER12PM06", "获取卡BIN信息失败"),
    GET_PAY_ORDER_INFO_ERROR("ER12PM07", "获取支付订单信息失败"),
    ORDER_NOT_ALLOW_PAY("ER12PM08", "当前订单不能支付"),
    UPDATE_ORDER_STATUS_ERROR("ER12PM09", "更新支付订单信息失败"),
    CALL_BIZ_SERVICE_ERROR("ER12PM10", "调用业务系统处理失败"),
    UPDATE_SMS_INFO_ERROR("ER12PM11", "更新短信信息失败"),
    TXNEXP_INSERT_ERROR("ER12PM12", "交易扩展流水登记失败"),
    AUTHCODE_EXPR_ERROR("ER12PM13", "无效验证码"),
    INVALID_SIGNID_ERROR("ER12PM14", "无效签约协议号"),
    USERREG_INSERT_ERROR("ER12PM15", "登记用户注册信息失败"),
    USER_STATUS_ABNORMAL("ER12PM16", "用户状态异常"),
    USER_NOT_FOUND("ER12PM17", "获取用户信息失败"),
    USER_GENID_ERROR("ER12PM18", "生成用户表ID列值失败"),
    USERREG_EXIT_ERROR("ER12PM19", "用户手机号已经存在"),
    ORDER_CANT_CLOSE("ER12PM20", "当前订单不能关闭"),
    ORDER_NOT_PAY("ER12PM21", "订单未支付成功，请先支付"),
    USERLOGIN_UPDATE_ERROR("ER12PM22", "登记用户注册信息失败"),
    ORDER_CANT_REFUND("ER12PM23", "当前订单不能退款"),
    GET_SIGN_INFO_ERROR("ER12PM24", "未获取到签约信息"),
    CHANNEL_CONFIG_NOT_EXIST("ER12PM25", "通道配置不存在"),
    CHANNEL_STATUS_UNNORMAL("ER12PM26", "通道状态异常"),
    GENERATE_SIGN_BLOCK_ERROR("ER12PM27", "生成加签BLOCK失败"),
    GENERATE_SIGN_ERROR("ER12PM28", "生成数字签名失败"),
    VERIFY_SIGN_ERROR("ER12PM29", "校验数字签名失败"),
    ALIP_NOTICE_TXN_ERROR("ER12PM30", "支付宝通知交易处理失败"),
    OPM_ORIG_TXN_NOT_FOUND("ER12PM31", "原交易信息查找失败"),
    OPM_OVER_AMT_LIMIT("ER12PM32", "超出金额限制"),
    DECRYPT_DATA_ERROR("ER12PM33", "解密数据失败"),
    EXIT_SIGN_INFO_ERROR("ER12PM34", "用户已完成签约"),
    ORDER_CANT_CACEL("ER12PM35", "当前订单不能撤销"),
    BIZ_PRO_ERROR("ER12PM36", "业务产品不正确"),
    MCHNT_INBLACK_ERROR("ER12PM37", "黑名单商户拒绝交易"),
    CHANNEL_UNAVAIABLE("ER12PM38", "渠道不可用"),
    UPAC_SIGN_NOEXIT("ER12PM39", "未开通无跳转支付签约"),
    SEC_PLAN_NOEXIT("ER12PM40", "安全计划标识缺失"),
    SEC_PLAN_STATUS_FALSE("ER12PM41", "安全计划状态异常"),
    CERT_STATUS_INVALID("ER12PM42", "安全证书失效"),
    MCHNT_INVALID("ER12PM43", "无效商户"),
    MCHNT_DISACCORD("ER12PM44", "商户信息不一致"),
    MCHNT_AMT_OVER("ER12PM45", "商户超限"),
    SESSION_INVALID("ER12PM46", "会话失效,请重新登陆"),
    USER_INVALID("ER12PM47", "无效用户,请重新登陆"),
    VERIFICATION_CODE_INVALID("ER12PM48", "验证码无效"),
    IDENTITY_INFORM_DISACCORD("ER12PM49", "身份认证失败"),
    PARAM_ERROR("ER12PM50", "参数传入错误"),
    UNSUPPORT_SIGN_TYPE("ER12PM51", "不支持的签约类型"),
    ORDER_NOEXIT("ER12PM52", "订单不存在"),
    ORDER_CLOSED("ER12PM53", "订单已关闭"),
    GEN_CHECK_CODE_FAIL("ER12PM54", "验证码生成失败"),
    USER_NOT_LOGIN_OR_SESSION_IS_EXPIRED("ER12PM55", "用户未登录或会话已过期"),
    ORDER_FINISH("ER12PM56", "订单已完成"),
    TRANS_AMT_DISACCORD("ER12PM57", "交易金额不一致"),
    MCHNT_NO_PERMISSION("ER12PM58", "商户无交易权限"),
    MCHNT_AUTH_INFO_NOT_FOUND("ER12PM59", "商户不支持该业务"),
    TRANS_IN_PROGRESS("ER12PM60", "交易进行中"),
    ORDER_EXPR_ERROR("ER12PM61", "订单已失效"),
    NOT_SURP_ACCTTYPE_ERROR("ER12PM62", "不支持的卡类型"),
    CALC_MCHNT_FEE_ERROR("ER12PM63", "计算商户手续费失败"),
    MCHNT_ACCT_INFO_NOT_FOUND("ER12PM64", "获取商户结算信息失败"),
    UPDATE_ORDER_ERROR("ER12PM65", "更新订单状态失败"),
    INSERT_PAY_ORDER_ERROR("ER12PM66", "登记支付订单失败"),
    USER_PASSWORD_ERROR("ER12PM67", "用户密码错误"),
    OVER_PASSWORD_ERROR_TIMES("ER12PM68", "密码输入错误次数超限"),
    USER_NOT_EXIT_ERROR("ER12PM69", "用户不存在"),
    USER_OUTLOG_ERROR("ER12PM70", "用户已注销"),
    OVER_DEFAULT_LIMIT_AMT("ER12PM71", "不能超过默认限额"),
    NOT_VLIAD_INST_INFO_ERROR("ER12PM72", "无效机构信息"),
    CARD_STATUS_ERROR("ER12PM73", "卡状态不正常"),
    OPEN_SMS_NOTICE_ERROR("ER12PM74", "卡片未开通短信通知"),
    INVALID_SIGN("ER12PM75", "无效签约关系"),
    CERT_NO_DIFF("ER12PM76", "证件号不一致"),
    DB_CONNECTION_ERROR("ER12PM77", "数据库连接异常"),
    SIGN_RESCISSION("ER12PM78", "已解约"),
    NEEDNOT_LOGIN("ER12PM79", "用户无需登陆"),
    CARD_NAME_DIFF("ER12PM80", "持卡人名称不一致"),
    NOT_SURP_TRANS_TYPE_ERROR("ER12PM81", "不支持的交易类型"),
    ORDER_STATUS_ERR("ER12PM82", "订单未成功"),
    RECEIVE_CARD_COUPON_ERR("ER12PM83", "领取卡劵失败"),
    UPDATE_SIGN_ACCT_ERROR("ER12PM84", "更新签约信息表失败"),
    USER_REGET_COUPON("ER12PM85", "重复领取优惠劵"),
    UPAC_MCHNT_DIFF("ER12PM86", "全渠道商户信息不一致"),
    TOKEN_DIFF("ER12PM87", "token信息不一致"),
    LOGIN_MODE_ERR("ER12PM88", "登录模式选择错误"),
    OVER_LIMIT_AMT("ER12PM89", "超过设定的限额"),
    B2C_QRCODE_ERROR("ER12PM90", "绑定二维码失败"),
    GET_QRCODE_INFO_ERROR("ER12PM91", "获取二维码信息失败"),
    RECOND_EMPTY_OR_NOT_FOUND("ER12PM92", "记录不存在或者数据为空"),
    SIGN_CHANNEL_USELESS("ER12PM93", "无可用的通道"),
    B2C_PAY_ERR("ER12PM94", "付款失败"),
    NOT_CONF_MSG_TEMPLATE("ER12PM95", "未配置消息模板"),
    MCHNT_NO_PROD("ER12PM96", "商户无可支持的产品"),
    ORG_LIMIT_CFG_NOT_FOUND("ER12PM97", "机构限额未设置"),
    SET_LIMIT_AMT_ERROR("ER12PM98", "限额设置失败"),
    GET_LIMIT_ERR("ER12PM99", "限额设置失败"),
    LIMIT_AMT_LT_ZERE("ER12PM0A", "限额不能小于0"),
    AUTH_AMT_PARAM_ERR("ER12PM0B", "认证方式限额参数不全"),
    PARAM_NULL_ERROR("ER12PM0C", "参数不能为空"),
    USER_NOT_SET_PASSWD_ERROR("ER12PM0D", "用户未设置密码，请先设置密码"),
    NOT_SURP_SIGNTOEKN_TYPE_ERROR("ER12PM0E", "不支持的签约类型"),
    USER_BIND_ALLREADY_CARD_ERROR("ER12PM0F", "用户已绑定该卡，请登录后支付"),
    USER_REGISTER_ERROR("ER12PM0H", "登记用户签约信息失败"),
    USER_EXIT_ERROR("ER12PM0I", "用户已存在"),
    USER_INFO_MISMATCH("ER12PM0J", "用户信息不匹配"),
    USER_SET_PASSWORD_ERROR("ER12PM0K", "用户设置/重置支付密码失败"),
    ORDER_REFUND_ERROR("ER12PM0L", "当前订单退款失败"),
    QRCODE_TRANS_FILED("ER12PM0M", "不支持的二维码"),
    ORDER_INVALID("ER12PM0N", "订单已失效"),
    DATE_START_GREATERTHAN_END_ERROR("ER12PM0P", "开始时间不能大于结束时间"),
    DATE_START_GRENTERTHAN_CURRENT_ERROR("ER12PM0Q", "开始时间不能大于当前时间"),
    USERORDER_NOEXISTENT("ER12PM0R", "用户订单信息不存在"),
    INSTID_NOT_BLANK("ER12PM0S", "法人机构号不能为空"),
    MCHNTNO_NOT_BLANK("ER12PM0T", "商户号不能为空"),
    COMPUTE_MCHNTFEE_FAILE("ER12PM0U", "计算商户手续费失败"),
    ALIGETUSERID_FAILE("ER12PM0V", "获取支付用户信息失败"),
    INSERT_MCHNTORDER_ERROR("ER12PM0W", "记录商户订单表失败"),
    ALIPAYMCHNT_NOEXISTENT("ER12PM0X", "支付宝商户不存在"),
    ORDER_PAYMENT_FAILE("ER12PM0Y", "订单支付失败"),
    PAYORDER_INSERT_ERROR("ER12PM0Z", "登记支付订单表失败"),
    NONFINANCIALCURRENT_ERROR("ER12PM1A", "查询订单号错误或不存在"),
    COMBOPAYMENT_ERROR("ER12PM1B", "营销手续费计算失败"),
    PAYORDER_STATUS_QUERY("ER12PM1C", "支付状态查询失败"),
    USERID_NOT_BLANK("ER12PM1D", "用户号不能为空"),
    PAGEINDEX_NOT_BLANK("ER12PM1E", "当前页数不能为空"),
    PAGESIZE_NOT_BLANK("ER12PM1F", "页显示记录数不能为空"),
    PLATMCHNTNO_NOT_BLANK("ER12PM1G", "平台商户号不能为空"),
    USERORDER_INVALID("ER12PM1H", "无效订单"),
    MCHNTORDERNOANDQRCODEURL_NOT_BLANK("ER12PM1I", "商户订单号和订单二维码不可同时为空"),
    ORDERCHANNELID_NOT_BLANK("ER12PM1J", "渠道标识不能为空"),
    GER_MCHNTORDER_FAILE("ER12PM1K", "获取商户订单信息失败"),
    PLATMCHNT_NOT_BLANK("ER12PM1L", "平台商户信息不存在"),
    QRURL_NOT_BLANK("ER12PM1M", "二维码URL不能为空"),
    GET_QRCODE_INVALID("ER12PM1N", "二维码无效"),
    USERID_QRCODE_MISMATCHING("ER12PM1P", "用户信息与二维码信息不匹配"),
    OPENID_FAILE("ER12PM1Q", "获取微信openId失败"),
    ENDDATE_MORE_STRDATE_ERROR("ER12PM1R", "开始时间和结束时间应在30天内"),
    MERCHANT_ORDERS_SERVICE_REQUIED_PARAM_NULL("ER12PM1S", "一码多付二维码生成必要参数缺失"),
    MERCHANT_ORDERS_SERVICE_INVALID_REQ("ER12PM1T", "无效的一码多付二维码生成请求"),
    SIGN_KEY_NOT_FOUND("ER12PM1U", "商户秘钥不存在"),
    CHECK_SIGN_ERROR("ER12PM1V", "验签失败"),
    USER_AUTH_CODE_NOT_FOUND("ER12PM1W", "userAuthCode失效"),
    DATADECRYPT_ERROR("ER12PM1X", "数据解密异常"),
    STAGE_MIN_AMT("ER12PM1Y", "分期额度最低要"),
    WEIHAI_QCREDIT_STAGE("ER12PM1Z", "信用卡必须分期"),
    SIGNTYPE_NOTNULL("ER12PM2A", "签约类型不能为空"),
    AUTH_AMT_PARAM_SET_ERR("ER12PM2B", "限额设定的不正确"),
    CERT_LOAD_INVALID("ER12PM2C", "加载证书异常"),
    GET_CARD_LIST_ERROR("ER12PM2D", "获取卡列表信息异常"),
    GET_QRCODE_NOT_ACC("ER12PM2E", "账号没有签约，现在签约?"),
    MOBILE_DIFERENT("ER12PM2F", "手机号不一致"),
    MOBILE_CANNOT_THE_SAME("ER12PM2G", "修改手机号不能与原手机号重复"),
    LIMIT_OVER_NO_PAY("ER12PM2H", "限额超过最大限额，已签约未支付。"),
    USER_MOBILE_DIFERENT("ER12PM2I", "手机号不一致,请修改用户手机号"),
    NOT_OEPN_RUAN_UKEY("ER12PM2R", "未开通软UKEY"),
    UNSUPPORT_01_BIZSCENETYPE("ER12PM2S", "该商户不支持担保支付"),
    NOTSUPPORT_MERGEPAY("ER12PM2T", "该渠道不支持合并支付"),
    MULTIPLE_USERS("ER12PM2U", "存在多个用户信息"),

    /* 系统级公共错误 */
    BIZ_TIMEOUT_ERROR("ER129998", "业务系统处理超时"),
    SYSTEM_ERROR("ER129999", "系统异常");


    private String respCode;
    private String respDesc;

    RespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
